//
//  MonthlyBudget.swift
//  Speek
//
//  Created by MikeHo on 2023/6/30.
//

import Foundation

//月预算
struct monthlyBudget:Identifiable{
    let id = UUID()
    let budgetYear: String
    let budgetMonth: String
    //本月内所有的预算信息
    var budgets: [BudgetDetail]
    //let bills: [BillDetail]
    var totalBudget: Double {
        budgets.reduce(0) { $0 + $1.amount }
    }
}
